package com.smh.lambda.test2;

/**
 * @description:
 * @author: shenmhk
 * @create: 2020-10-26 14:05
 */
public class CommandTest {
    public void show(Command c) {
        c.test();
    }

    public static void main(String[] args) {
        CommandTest ct=new CommandTest();

        ct.show(()->{
            System.out.println("Lambda表达式入门测试");
        });//Lambda表达式实现参数传递

    }
}
